package org.xxpay.core.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ChannelMchChannelInfoExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    private Integer limit;

    private Integer offset;

    public ChannelMchChannelInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdIsNull() {
            addCriterion("channelMchId is null");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdIsNotNull() {
            addCriterion("channelMchId is not null");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdEqualTo(Long value) {
            addCriterion("channelMchId =", value, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdNotEqualTo(Long value) {
            addCriterion("channelMchId <>", value, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdGreaterThan(Long value) {
            addCriterion("channelMchId >", value, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdGreaterThanOrEqualTo(Long value) {
            addCriterion("channelMchId >=", value, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdLessThan(Long value) {
            addCriterion("channelMchId <", value, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdLessThanOrEqualTo(Long value) {
            addCriterion("channelMchId <=", value, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdIn(List<Long> values) {
            addCriterion("channelMchId in", values, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdNotIn(List<Long> values) {
            addCriterion("channelMchId not in", values, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdBetween(Long value1, Long value2) {
            addCriterion("channelMchId between", value1, value2, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andChannelMchIdNotBetween(Long value1, Long value2) {
            addCriterion("channelMchId not between", value1, value2, "channelMchId");
            return (Criteria) this;
        }

        public Criteria andPayproductIsNull() {
            addCriterion("payproduct is null");
            return (Criteria) this;
        }

        public Criteria andPayproductIsNotNull() {
            addCriterion("payproduct is not null");
            return (Criteria) this;
        }

        public Criteria andPayproductEqualTo(Integer value) {
            addCriterion("payproduct =", value, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductNotEqualTo(Integer value) {
            addCriterion("payproduct <>", value, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductGreaterThan(Integer value) {
            addCriterion("payproduct >", value, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductGreaterThanOrEqualTo(Integer value) {
            addCriterion("payproduct >=", value, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductLessThan(Integer value) {
            addCriterion("payproduct <", value, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductLessThanOrEqualTo(Integer value) {
            addCriterion("payproduct <=", value, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductIn(List<Integer> values) {
            addCriterion("payproduct in", values, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductNotIn(List<Integer> values) {
            addCriterion("payproduct not in", values, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductBetween(Integer value1, Integer value2) {
            addCriterion("payproduct between", value1, value2, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPayproductNotBetween(Integer value1, Integer value2) {
            addCriterion("payproduct not between", value1, value2, "payproduct");
            return (Criteria) this;
        }

        public Criteria andPaypassageIsNull() {
            addCriterion("paypassage is null");
            return (Criteria) this;
        }

        public Criteria andPaypassageIsNotNull() {
            addCriterion("paypassage is not null");
            return (Criteria) this;
        }

        public Criteria andPaypassageEqualTo(Integer value) {
            addCriterion("paypassage =", value, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageNotEqualTo(Integer value) {
            addCriterion("paypassage <>", value, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageGreaterThan(Integer value) {
            addCriterion("paypassage >", value, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageGreaterThanOrEqualTo(Integer value) {
            addCriterion("paypassage >=", value, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageLessThan(Integer value) {
            addCriterion("paypassage <", value, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageLessThanOrEqualTo(Integer value) {
            addCriterion("paypassage <=", value, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageIn(List<Integer> values) {
            addCriterion("paypassage in", values, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageNotIn(List<Integer> values) {
            addCriterion("paypassage not in", values, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageBetween(Integer value1, Integer value2) {
            addCriterion("paypassage between", value1, value2, "paypassage");
            return (Criteria) this;
        }

        public Criteria andPaypassageNotBetween(Integer value1, Integer value2) {
            addCriterion("paypassage not between", value1, value2, "paypassage");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateIsNull() {
            addCriterion("channelMchRate is null");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateIsNotNull() {
            addCriterion("channelMchRate is not null");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateEqualTo(BigDecimal value) {
            addCriterion("channelMchRate =", value, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateNotEqualTo(BigDecimal value) {
            addCriterion("channelMchRate <>", value, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateGreaterThan(BigDecimal value) {
            addCriterion("channelMchRate >", value, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("channelMchRate >=", value, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateLessThan(BigDecimal value) {
            addCriterion("channelMchRate <", value, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("channelMchRate <=", value, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateIn(List<BigDecimal> values) {
            addCriterion("channelMchRate in", values, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateNotIn(List<BigDecimal> values) {
            addCriterion("channelMchRate not in", values, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("channelMchRate between", value1, value2, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andChannelMchRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("channelMchRate not between", value1, value2, "channelMchRate");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("createTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}